﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IFClientDLL.MyCalc.CalcMarket
{
    public class MyCalcArt_反向破支撑 :MyCalc_BaseArt, ICalc_Art
    {
        public decimal VolumnPct_保守
        {
            get
            {
                if (MarketBaseDirectory)
                {
                    if (MarketTechDirecotry)
                    {
                        return 0;
                    }
                    else
                    {
                        return 0.2m;
                    }
                }
                else
                {
                    if (MarketTechDirecotry)
                    {
                        return 0;
                    }
                    else
                    {
                        return 0.5m;
                    }
                }
            }
        }

        public decimal VolumnPct_平衡
        {
            get
            {
                if (MarketBaseDirectory)
                {
                    if (MarketTechDirecotry)
                    {
                        return 0;
                    }
                    else
                    {
                        return 0.3m;
                    }
                }
                else
                {
                    if (MarketTechDirecotry)
                    {
                        return 0;
                    }
                    else
                    {
                        return 0.6m;
                    }
                }
            }
        }

        public decimal VolumnPct_激进
        {
            get
            {
                if (MarketBaseDirectory)
                {
                    if (MarketTechDirecotry)
                    {
                        return 0;
                    }
                    else
                    {
                        return 0.4m;
                    }
                }
                else
                {
                    if (MarketTechDirecotry)
                    {
                        return 0;
                    }
                    else
                    {
                        return 0.8m;
                    }
                }
            }
        }

        public bool? Directory
        {
            get
            {
                if (MarketBaseDirectory)
                {
                    if (MarketTechDirecotry)
                    {
                        return null;
                    }
                    else
                    {
                        return false;
                    }
                }
                else
                {
                    if (MarketTechDirecotry)
                    {
                        return null;
                    }
                    else
                    {
                        return false;
                    }
                }
            }
        }


        public MyEnumCalcArt ArtType
        {
            get { return MyEnumCalcArt.反向破支撑; }
        }

        public string Name
        {
            get { return ArtType.ToString(); }
        }

        public string Desc
        {
            get { return ArtType.ToString(); }
        }
        private string _msg;
        public string Msg
        {
            get { return _msg; }
        }

        public void DoCalc(MyCalcData data)
        {
            _msg = string.Empty;
        }
    }
}
